<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div[class^=tran] {
            width: 200px;
            height: 30px;
            margin-top: 10px;
            background-color: burlywood;
            transition: width 5s;
        }

        body:hover div {
            width: 1000px;
        }

        div[class^=tran]:nth-child(1) {
            transition-timing-function: ease;
        }

        div[class^=tran]:nth-child(2) {
            transition-timing-function: linear;
        }

        div[class^=tran]:nth-child(3) {
            transition-timing-function: ease-in;
        }

        div[class^=tran]:nth-child(4) {
            transition-timing-function: ease-out;
        }

        div[class^=tran]:nth-child(5) {
            transition-timing-function: ease-in-out;
        }
    </style>
</head>

<body>
<div class="tran-ease">ease：慢速开始慢速结束</div>
<div class="tran-linear">linear：匀速过渡</div>
<div class="tran-ease-in">ease-in：加速，先慢后快</div>
<div class="tran-ease-out">ease-out：减速，先快后慢</div>
<div class="tran-ease-in-out">ease-in-out：先加速后减速，先由慢变快后变慢</div>

</body>

</html>